package day240428.p2;

import day240428.p2.Person;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

public class Test {
    public static void main(String[] args) {
        Person person=new Person("xxx");
        Method[] Methods = person.getClass().getDeclaredMethods();
        System.out.println(Methods.length);
        for (Method method: Methods){
            System.out.println(method);
        }
        Constructor<?>[] constructors = person.getClass().getConstructors();
        System.out.println(constructors.length);
        for (Constructor constructor:constructors){
            System.out.println(constructor);
        }



    }
}
